
def run(params:list[str]):
    from ApiTools import apiBase,apiTools
    collects = apiBase.argv_array(params,1,"act/plan/tablename;")    
    usr_prompt=apiBase.argv(params,2,"Thomas, Toby, and Rebecca worked a total of 157 hours in one week. Thomas worked x hours. Toby worked 10 hours less than twice what Thomas worked, and Rebecca worked 8 hours")
    # 获取vctid，ent_vector表id的信息,参数定义在ent_vector记录里面
    ids=apiBase.argv_array(params,3)
    try:
        vcts=apiTools.load_models().get_vects(collects,ids)
        act = apiTools.load_act()
        return act.rewriter(vcts,usr_prompt)
    except Exception as e:
        return f"function error:{e}"

#run([])